const forest = {
    location : 'Sweden',
    animals:3,
    animalsTypes:['loins','tigers','bears']
};
console.log(forest.nickname)
const location = 'dere';
// es6 (对象+数组)解构
const { location :lo,animals,animalsTypes,nickname='未命名'} = forest;
console.log(lo,nickname);

const [lions,tigers,bears] = animalsTypes;
console.log(lions,tigers,bears)